package d0323;


import java.util.Scanner;

public class Homework {
    public static void main(String[] args) {
        System.out.println("输入一串数字");
        Scanner input = new Scanner(System.in);
        String str = input.nextLine();
        int n1 = 0;
        int n2 = 0;
        for (int i = 0;i < str.length();i++) {
            if(str.charAt(i) % 2 != 0) {
                n1++;
            } else{
                n2++;
            }
        }
        System.out.println("奇数个数为："+n1);
        System.out.println("偶数个数为："+n2);
    }
}
